package com.lzm.ydpt.entity.riding;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 常驻地址
 */
public class PerAddress implements Parcelable {
    private String address;// (string, optional): 地址 省市区 ,
    private int addressRange;//(integer, optional): 活动范围 5 - 50 单位公里 ,
    private String courierId;// (integer, optional): 骑手id ,
    private String createTime;// (string, optional),
    private int delFlag;// (integer, optional): 是否删除[0:false, 1:true] ,
    private String detailedAddress;// (string, optional): 详细地址 门牌号 ,
    private long  id;// (integer, optional),
    private double latitude;// (number, optional): 纬度 ,
    private double longitude;// (number, optional): 经度 ,
    private long memberId;// (integer, optional): 林棕梦用户id ,
    private int  status;// (integer, optional): 启用状态:0->禁用；1->启用 ,
    private String updateTime;// (string, optional)

    protected PerAddress(Parcel in) {
        address = in.readString();
        addressRange = in.readInt();
        courierId = in.readString();
        createTime = in.readString();
        delFlag = in.readInt();
        detailedAddress = in.readString();
        id = in.readLong();
        latitude = in.readDouble();
        longitude = in.readDouble();
        memberId = in.readLong();
        status = in.readInt();
        updateTime = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(address);
        dest.writeInt(addressRange);
        dest.writeString(courierId);
        dest.writeString(createTime);
        dest.writeInt(delFlag);
        dest.writeString(detailedAddress);
        dest.writeLong(id);
        dest.writeDouble(latitude);
        dest.writeDouble(longitude);
        dest.writeLong(memberId);
        dest.writeInt(status);
        dest.writeString(updateTime);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PerAddress> CREATOR = new Creator<PerAddress>() {
        @Override
        public PerAddress createFromParcel(Parcel in) {
            return new PerAddress(in);
        }

        @Override
        public PerAddress[] newArray(int size) {
            return new PerAddress[size];
        }
    };

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAddressRange() {
        return addressRange;
    }

    public void setAddressRange(int addressRange) {
        this.addressRange = addressRange;
    }

    public String getCourierId() {
        return courierId;
    }

    public void setCourierId(String courierId) {
        this.courierId = courierId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
